<template>
  <div class="app-container" style="background-color: #F0F2F5">
    <el-row :gutter="36">
      <el-col :span="6">
        <el-card shadow="never" style="height: 108px;background-color: #037ef3!important">
          <Top></Top>
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="never" style="height: 108px;background-color: #ff6a00!important;">
          鼠标悬浮时显示
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="never" style="height: 108px;background-color: #d0648a!important;">
          从不显示
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="never" style="height: 108px;background-color: #e7505a!important">
          从不显示
        </el-card>
      </el-col>
    </el-row>


    <el-row style="margin-top: 32px">
      <el-col :span="24">
        <el-card shadow="never" style="height: 350px;background-color: white">

          <MyChart></MyChart>

        </el-card>
      </el-col>
    </el-row>

    <el-row :gutter="36" style="margin-top: 32px">
      <el-col :span="8">
        <el-card shadow="never" style="height: 310px;background-color: white">
          <PieCharts2></PieCharts2>
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card shadow="never" style="height: 310px;background-color: white">
          <PieCharts></PieCharts>
        </el-card>
      </el-col>
      <el-col :span="8">
        <el-card shadow="never" style="height: 310px;background-color: white">
          <PieCharts3></PieCharts3>
        </el-card>
      </el-col>
    </el-row>

    <el-row :gutter="10" style="margin-top: 32px;margin-bottom: 40px">
      <el-col :span="12">
        <el-card shadow="never" style="height: 451px;background-color: white">
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="never" style="height: 451px;background-color: white">
          鼠标悬浮时显示
        </el-card>
      </el-col>
      <el-col :span="6">
        <el-card shadow="never" style="height: 451px;background-color: white">
          从不显示
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
  import { mapGetters } from 'vuex'

  //导入其他的组件
  import Top from '@/views/other/top'

  import MyChart from '@/views/echarts/myChart'
  import PieCharts from '@/views/echarts/pieCharts'
  import PieCharts2 from '@/views/echarts/chart2'
  import PieCharts3 from '@/views/echarts/chart3'

  export default {
    name: 'Dashboard',
    components: {
      Top: Top,
      MyChart: MyChart,
      PieCharts: PieCharts,
      PieCharts2: PieCharts2,
      PieCharts3: PieCharts3
    },
    computed: {
      ...mapGetters([
        'name'
      ])
    }
  }
</script>

<style lang="scss" scoped>
  .dashboard {
    &-container {
      margin: 30px;
    }

    &-text {
      font-size: 30px;
      line-height: 46px;
    }
  }
</style>
